﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    class Animal
    {
        private string name { get; set; }

        public Animal(string name)
        {
            this.name = name;
        }
        public void eat()
        {
            Console.WriteLine("{0}正在吃",name);
        }
        public void LayEgg()
        {
            Console.WriteLine("{0}下蛋蛋了",name);
        }
    }
}
